import request from '@/utils/request'

// 查询定损列表
export function assessManageList(query) {
  return request({
    url: '/damage/getDamageList',
    method: 'get',
    params: query
  })
}

//新增定损
export function addAssessManagement(data) {
  return request({
    url: '/damage/insertDamage',
    method: 'post',
    data: data
  })
}

//修改定损
export function updateAssessManagement(data) {
  return request({
    url: '/damage/updateDamage',
    method: 'post',
    data: data
  })
}


//删除查勘
export function deleteAssessManagement(data) {
  return request({
    url: '/damage/deleteDamage',
    method: 'post',
    data: data
  })
}

//提交物损
export function insertAssessList(data) {
  return request({
    url: '/loss/insertList',
    method: 'post',
    data: data
  })
}

//查询物损列表
export function getDamageProperty(query) {
  return request({
    url: '/loss/getDamageProperty',
    method: 'get',
    params: query
  })
}

//查询图片
export function getSurveyImg(data) {
  return request({
    url: '/survey_management/selectImg',
    method: 'post',
    data: data
  })
}

///删除单张图片
export function deleteSurveyImg(data) {
  return request({
    url: '/survey_management/deleteImg',
    method: 'post',
    data: data
  })
}

///提交接口
export function updateStatus(query) {
  return request({
    url: '/damage/updateStatus',
    method: 'get',
    params: query
  })
}

///审核接口
export function caseReview(data) {
  return request({
    url: '/case_management/caseReview',
    method: 'put',
    data: data
  })
}
